package com.kou.service.impl;

import com.kou.dao.AdminDao;
import com.kou.dao.AdminDaoImpl;
import com.kou.pojo.User;
import com.qf.service.AdminService;

import java.util.List;

/**
 * @author SteinY
 * @create 2022-03-28 9:07
 * @description:
 */
public class AdminServiceImple implements AdminService {
    AdminDao adminDao = new AdminDaoImpl();
    @Override
    public User login(String username, String password) {
        return adminDao.login(username,password);

    }

    @Override
    public List<User> findAll1() {
        return adminDao.findAll1();
    }

    @Override
    public List<User> findAll2() {
        return adminDao.findAll2();
    }

    @Override
    public void deleteById(String id) {
        adminDao.deleteById(id);
    }

    @Override
    public List<User> select(String username, String gender) {
        return adminDao.select(username,gender);
    }
}
